<template>
	<view>
		<!-- 父传子 -->
		<son1 :title="title"></son1>
		<!-- 子传父 -->
		<son2 @son="onson"></son2>
	</view>
</template>

<script>
	import son1 from '../../pages/compoents/son1/son1.vue'
	import son2 from '../../pages/compoents/son1/son1.vue'
	export default {
		components: {
			son1,
			son2
		},
		data() {
			return {
				title: '这是父传子',
			}
		},
		methods: {
			onson(e) {
				console.log(e);
			}
		}
	}
</script>

<style>

</style>